package com.example.cloudcashierpos.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.math.BigDecimal;
import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class corecmsdiscountrules {

    /**
     * 序列
     */
    @Id
    private Long id;

    /**
     * 总店id
     */
    private Integer corpId;

    /**
     * 门店id
     */
    private Integer storeId;

    /**
     * 促销状态(0未审核，1已审核，2停用)
     */
    private Integer status;

    /**
     * 方案编码
     */
    private String programmeCode;

    /**
     * 方案名称
     */
    private String programmeName;

    /**
     * 促销人群（0全部 1非会员 2会员）
     */
    private Integer discountUserType;

    /**
     * 促销开始时间
     */
    private Date startTime;

    /**
     * 促销结束时间
     */
    private Date endTime;

    /**
     * 一个星期哪几天有优惠(比如,1,2,6代表星期一，二,六）
     */
    private String weekValues;

    /**
     * 指定方式（0.全部,1.菜品，2.类别）
     */
    private Integer appointType;

    /**
     * 促销模式（1特价，2折扣，3买一送一，4第二份半价)
     */
    private Integer discountType;

    /**
     * 修改时间截
     */
    private Long modifyTime;

    /**
     * 是否促销所有门店(1.是，0否)
     */
    private Byte isAllUseStore;

    /**
     * 关联corecmsdiscountrules表的id
     */
    private Long discountRulesId;

    /**
     * 菜品规格Id或分类Id,根据主表字段appointType
     */
    private Long foodOrCategoryId;

    /**
     * 特价价格
     */
    private Double discountPrice;

    /**
     * 折扣值(1-99)
     */
    private Double discountValue;

    /**
     * 零售原单价
     */
    private Double posPrice;

    @Generated(hash = 1221329371)
    public corecmsdiscountrules(Long id, Integer corpId, Integer storeId,
            Integer status, String programmeCode, String programmeName,
            Integer discountUserType, Date startTime, Date endTime,
            String weekValues, Integer appointType, Integer discountType,
            Long modifyTime, Byte isAllUseStore, Long discountRulesId,
            Long foodOrCategoryId, Double discountPrice, Double discountValue,
            Double posPrice) {
        this.id = id;
        this.corpId = corpId;
        this.storeId = storeId;
        this.status = status;
        this.programmeCode = programmeCode;
        this.programmeName = programmeName;
        this.discountUserType = discountUserType;
        this.startTime = startTime;
        this.endTime = endTime;
        this.weekValues = weekValues;
        this.appointType = appointType;
        this.discountType = discountType;
        this.modifyTime = modifyTime;
        this.isAllUseStore = isAllUseStore;
        this.discountRulesId = discountRulesId;
        this.foodOrCategoryId = foodOrCategoryId;
        this.discountPrice = discountPrice;
        this.discountValue = discountValue;
        this.posPrice = posPrice;
    }

    @Generated(hash = 1719472091)
    public corecmsdiscountrules() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCorpId() {
        return this.corpId;
    }

    public void setCorpId(Integer corpId) {
        this.corpId = corpId;
    }

    public Integer getStoreId() {
        return this.storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getProgrammeCode() {
        return this.programmeCode;
    }

    public void setProgrammeCode(String programmeCode) {
        this.programmeCode = programmeCode;
    }

    public String getProgrammeName() {
        return this.programmeName;
    }

    public void setProgrammeName(String programmeName) {
        this.programmeName = programmeName;
    }

    public Integer getDiscountUserType() {
        return this.discountUserType;
    }

    public void setDiscountUserType(Integer discountUserType) {
        this.discountUserType = discountUserType;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getWeekValues() {
        return this.weekValues;
    }

    public void setWeekValues(String weekValues) {
        this.weekValues = weekValues;
    }

    public Integer getAppointType() {
        return this.appointType;
    }

    public void setAppointType(Integer appointType) {
        this.appointType = appointType;
    }

    public Integer getDiscountType() {
        return this.discountType;
    }

    public void setDiscountType(Integer discountType) {
        this.discountType = discountType;
    }

    public Long getModifyTime() {
        return this.modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Byte getIsAllUseStore() {
        return this.isAllUseStore;
    }

    public void setIsAllUseStore(Byte isAllUseStore) {
        this.isAllUseStore = isAllUseStore;
    }

    public Long getDiscountRulesId() {
        return this.discountRulesId;
    }

    public void setDiscountRulesId(Long discountRulesId) {
        this.discountRulesId = discountRulesId;
    }

    public Long getFoodOrCategoryId() {
        return this.foodOrCategoryId;
    }

    public void setFoodOrCategoryId(Long foodOrCategoryId) {
        this.foodOrCategoryId = foodOrCategoryId;
    }

    public Double getDiscountPrice() {
        return this.discountPrice;
    }

    public void setDiscountPrice(Double discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Double getDiscountValue() {
        return this.discountValue;
    }

    public void setDiscountValue(Double discountValue) {
        this.discountValue = discountValue;
    }

    public Double getPosPrice() {
        return this.posPrice;
    }

    public void setPosPrice(Double posPrice) {
        this.posPrice = posPrice;
    }
}
